//
//  OnePicFromLibrary.h
//
//  选中的每一个图片
//
//  Created by Yangfan on 15/2/4.
//  Copyright (c) 2015年 4gread. All rights reserved.
//

#import "BaseView.h"
#import <AssetsLibrary/AssetsLibrary.h>

@protocol OnePicFromLibraryDelegate;
@interface OnePicFromLibrary : BaseView
@property (nonatomic, strong) UIImageView   *imageView;
@property (nonatomic, strong) UIButton      *deleteButton;
@property (nonatomic, strong) ALAsset       *asset;
@property (nonatomic, assign) NSInteger     index;
@property (nonatomic, weak)   id<OnePicFromLibraryDelegate> delegate;

- (void)setImageAsset:(ALAsset *)asset index:(NSInteger)index;
@end

@protocol OnePicFromLibraryDelegate <NSObject>
// 删除选中的图片，sender为当前对象本身，是一个包含有图片、按钮等的集合
- (void)responseToDelete:(id)sender;
@end